<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
		<script>
		    document.addEventListener("plusready", function() {
		        // 注册返回按键事件
		        plus.key.addEventListener('backbutton', function() {
		            // 事件处理
		            window.history.back();
		        }, false);
		    });
		</script>
		<meta name="viewport" content="width=device-width, initial-scale=1" />
		<link rel="stylesheet" href="../css/bootstrap.css" />
		<!--<script src="../js/bootstrap.js"></script>-->
		<script src="https://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
	</head>

	<body>
		<div class="list-group">
			<a href="#" class="list-group-item active">
				<h4 class="list-group-item-heading">
			js代码 返回上一级
		</h4>
			</a>
			<pre><span style="color: #008080;">1</span> &lt;script&gt;
<span style="color: #008080;">2</span>     document.addEventListener("plusready", <span style="color: #0000ff;">function</span><span style="color: #000000;">() {
</span><span style="color: #008080;">3</span>                 <span style="color: #008000;">//</span><span style="color: #008000;"> 注册返回按键事件</span>
<span style="color: #008080;">4</span>     plus.key.addEventListener('backbutton', <span style="color: #0000ff;">function</span><span style="color: #000000;">() {
</span><span style="color: #008080;">5</span>                     <span style="color: #008000;">//</span><span style="color: #008000;"> 事件处理</span>
<span style="color: #008080;">6</span> <span style="color: #000000;">    window.history.back();
</span><span style="color: #008080;">7</span>     }, <span style="color: #0000ff;">false</span><span style="color: #000000;">);
</span><span style="color: #008080;">8</span> <span style="color: #000000;">});
</span><span style="color: #008080;">9</span> &lt;/script&gt;</pre>
		</div>
		</div>
		<div class="list-group">
			<a href="#" class="list-group-item active">
				<h4 class="list-group-item-heading">
				js定时跳转
			</h4>
			</a>
			<pre>&lt;script type="text/javascript"&gt;
    <span style="color: #0000ff;">var</span> i = 3;<span style="color: #008000;">//</span><span style="color: #008000;">定义倒计时的总时间为5s</span>
    <span style="color: #0000ff;">var</span> xx = window.setInterval(tt, 1000<span style="color: #000000;">);
    </span><span style="color: #0000ff;">function</span><span style="color: #000000;"> tt(){
    i</span>--<span style="color: #000000;">; 
    document.getElementById(</span>'f1').innerHTML = i + 's'<span style="color: #000000;">; 
    </span><span style="color: #0000ff;">if</span>(i == 0<span style="color: #000000;">){
    window.clearInterval(xx);
    window.location.href </span>="index.html"<span style="color: #000000;">;
                　　</span><span style="color: #008000;">//</span><span style="color: #008000;">这个链接写自己想要跳转到链接</span>
<span style="color: #000000;">    }
}
</span>&lt;/script&gt;</pre>
		</div>
		</div>
		<div class="list-group">
			<a href="#" class="list-group-item active">
				<h4 class="list-group-item-heading">
			echart3 js模版
				</h4>
			</a>
			<pre><span style="color: #008080;">1</span> <span style="color: #0000ff;">var</span> dom = document.getElementById("main"<span style="color: #000000;">);
</span><span style="color: #008080;">2</span> <span style="color: #0000ff;">var</span> myChart =<span style="color: #000000;"> echarts.init(dom);
</span><span style="color: #008080;">3</span> <span style="color: #008000;">/*</span><span style="color: #008000;">数据代码</span><span style="color: #008000;">*/</span>
<span style="color: #008080;">4</span> myChart.setOption(option, <span style="color: #0000ff;">true</span>);</pre>
		</div>
		</div>
	</body>

</html>